Repository navigation
fix: validate cloud config before deployment creation - #638
Merged
Merged
Conversation
|
Member
Author
|
@greptileai Please re-review the latest head, including the independent-review follow-up fixes and regressions. |
Member
Author
|
@greptileai please re-review the latest head, including the addressed independent-review regression. |
…ght-cloud-config # Conflicts: # crates/alien-cli/src/commands/deploy.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
alien deploycreated or registered the deployment first, persisted its deployment-scoped token in the runner-local tracker, and only then loaded the target cloud configuration. A basic local prerequisite error such as a missing AWS region therefore left a durable pending deployment even though no cloud operation could begin. This is especially painful in ephemeral CI because the runner that holds the tracker may disappear.Reproduce
alien deploy --platform aws ...for a new deployment.ClientConfig::from_std_env(Platform::Aws)then fails while provisioning begins.Fix
Build and validate the provider client immediately after resolving the requested platform, before tracker lookup, deployment-group session creation, deployment creation, or token persistence. The validated client is retained and reused by the provisioning loop.
Machines remains exempt because it creates a join command and does not use a runner-local cloud client. Local development still exits into its dedicated path before this validation.
This is local feasibility validation only; authoritative account/project/subscription checks and cloud ownership protections remain unchanged.
Validation
cargo check -p alien-cligit diff --checkLinear: ALIEN-853